package com.yukh.test.hibernate.interceptor;

import org.hibernate.EmptyInterceptor;

public class QueryReslutInterceptor extends EmptyInterceptor{
	private static final long serialVersionUID = 1L;
	
	private String index;
	
	public QueryReslutInterceptor(String tabIndex){
		index = tabIndex;
	}
	
	@Override
	public String onPrepareStatement(String sql) {
		System.out.println(index + "==="+sql);
		
		return super.onPrepareStatement(sql);
	}
}
